package mhuu.util;

import java.util.HashMap;
import java.util.Map;

public class TextUtil {
	public static  String encodeParams(String str){ 
	        
	        return   "{\"requestMessage\":\""+GZipUtils.encoderStr(str)+"\"}";
	    }
	public static void main(String[] args) throws Exception {
		System.out.println(encodeParams("{\"companyId\":\"hdl\",\"shopId\":\"hdl001\"}"));
		System.out.println(GZipUtils.decoderStr("H4sIAAAAAAAAAKvmUlBQSs7PLUjMq/RMUVKwUlBy8XQ1sfTKdg01svTycLEwtPQIyjC0zHB3cYw0"
				+"VNIBqS/OyC+AKnZycbGwNDczdDOAACc3CyjL2NAMSCpx1XIBAHqTNmRkAAAA"));
		System.out.println(GZipUtils.decoderStr("H4sIAAAAAAAAAKtWSs7PLUjMq/RMUdJRykjJAZLFGfkFMK6BgaFSLQA+oIbTJQAAAA=="));
	}
	
		
}
